import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(), // 路由类型
  routes: [
    {
      path: '/',
      component: import('../page/Home.vue'),
    },
    {
      path: '/template',
      component: import('../page/Template.vue'),
    },
  ],
});

//导出
export default router;
